﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;

namespace KXmlUIControl
{
    public class XmlPromptObject
    {
        /// <summary>
        /// 在程序中引用其的对象名称
        /// </summary>
        public string Name {get; set;}

        /// <summary>
        /// 
        /// </summary>
        public string Text { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool Enabled { get; set; }  
    
        /// <summary>
        /// 本地加载的文件名称
        /// </summary>
        public string FullFileName
        {
            get
            {
                if (!Enabled || string.IsNullOrEmpty(VoiceFileName))
                {
                    return "";
                }
                return Path.Combine(StaticTypes.VoiceFolder, VoiceFileName);
            }
        }

        /// <summary>
        /// 配置文件中配置的相对路径
        /// </summary>
        public string VoiceFileName { get; set; }

        public XmlPromptObject()
        {
            
        }
        
    }
}
